import json

from config import DASE_DIR


def build_data(filepath):
    path = DASE_DIR+filepath
    arrs = []
    with open(path,"r",encoding="utf-8") as f:
        datas =  json.load(f)
        for data in datas:
            arrs.append(tuple(data.values()))
        return arrs


if __name__ == '__main__':
    print(build_data("/data/login.json"))